<?php
// +--------------------------------------------------------------------------
// | ZAIYOUDAO [ 载攸道 先顺得常 ] <http://www.zaiyoudao.com>
// +--------------------------------------------------------------------------
// | Copyright © 2009-2016 载攸道 版权所有 <TEL:17090888854>
// +--------------------------------------------------------------------------
// | Project: YiPHP [ 我会的仅仅是偷懒！ ] <http://www.yiphp.com>
// +--------------------------------------------------------------------------
// | Author: 牛很多戒很多不戒 <n@isdce.com> <http://juexue.wang>
// +--------------------------------------------------------------------------

/**
 * CMS
 */
namespace Mall\Controller;
use Common\Controller\AdminController;

/**
 * 控制台
 */
class ConsoleController extends AdminController{
	
	/**
	 * 仪表盘
	 */
    public function Dashboard(){
    

		common_public()->assign_page('仪表盘');
	
		//赋值
		$this->assign('list',$list);
		
		$this->display();
	}
	
	/**
	 * 菜单汇总
	 */
	public function getNum($type){
    
		$m_cms_content = M('cms_content');
		
		$map['type'] = get_cms_model_conf($type);
		$map['status'] = array('in','1,2');
		
		$num = $m_cms_content->where($map)->count();
		
		return $num;
		
		
	}
	
	/**
	 * 上传文件
	 */
	public function Upload(){
    
		$m_common_upload = M('common_upload');
		
		$upload_num = $m_common_upload->where('status=1')->count();
		
		$this->assign('upload_num', $upload_num);
		
		
	}
	
	/**
	 * 上传文件类型
	 */
	public function UploadType(){
    
		$m_common_upload_type = M('common_upload_type');
		
		$upload_type_num = $m_common_upload_type->where('status=1')->count();
		
		$this->assign('upload_type_num', $upload_type_num);
		
		
	}
	
	
}